package models

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ ShareResourceModel = (*customShareResourceModel)(nil)

type (
	// ShareResourceModel is an interface to be customized, add more methods here,
	// and implement the added methods in customShareResourceModel.
	ShareResourceModel interface {
		shareResourceModel
	}

	customShareResourceModel struct {
		*defaultShareResourceModel
	}
)

// NewShareResourceModel returns a model for the database table.
func NewShareResourceModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ShareResourceModel {
	return &customShareResourceModel{
		defaultShareResourceModel: newShareResourceModel(conn, c, opts...),
	}
}
